package com.java.tutorials.jdk7.files;
import com.java.tutorials.Constants;

import java.nio.file.FileSystem;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Set;
/**
 * Created by xuzhike on 2016/1/26.
 * http://www.java2s.com/Code/Java/JDK-7/Determiningoperatingsystemsupportforattributeviews.htm
 * Determining operating system support for attribute views
 */
public class Determiningoperatingsystemsupportforattributeviews {
    public static void main(String[] args) {
        Path path = Paths.get(Constants.TEST_FILE_WITH_PATH);
        FileSystem fileSystem = path.getFileSystem();
        Set<String> supportedViews = fileSystem.supportedFileAttributeViews();

        for (String view : supportedViews) {
            System.out.println(view);
        }
    }
}
